<template>
  <div class="footer flex align-center justify-space-between" :class="{ above: position === 'above' }">
    <div>
      <a href="/help.html" target="_blank"><span class="hidden-xs-only">帮助</span></a>
    </div>
    <div>
      <span> <a href="/" target="_blank">版权所有</a></span>
      <!-- <a class="el-button buy-btn animated fadeInRight el-button--default el-button--small is-plain" href="https://1.envato.market/BkJGL?ref=Linko91&utm_source=pragmaticdemo" target="_blank">
				<i class="mdi mdi-cart"></i> Purchase <span class="hidden-xs-only">Pragmatic</span>
			</a> -->
    </div>
  </div>
</template>

<script>
export default {
  name: "Footer",
  props: ["position"]
};
</script>

<style lang="scss" scoped>
@import "../assets/scss/_variables";
@import "../assets/scss/_mixins";

.footer {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  background: white;
  margin-top: 2px;
  font-size: 14px;
  border-top-left-radius: 20px;

  &.above {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  a {
    font-weight: bold;
    text-decoration: none;
    color: $text-color-accent;
  }

  .buy-btn {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 0 12px;
    border-radius: 0;
  }
}
</style>
